<?php
	/**
	 *	KLF Framework
	 *
	 *	Written by Kristian Oye <kristianoye@gmail.com> on Oct 23, 2011
	 *	Copyright (C) 2010-2011
	 */
	namespace KLF\System\Errors
	{
		/**
		 *  Class KPropertyException
		 *
		 *  Error that gets thrown when a non-existant property is accessed.
		 *
		 *  @package KLF\System\Errors
		 *  @access public
		 *  @author Kristian Oye <kristianoye@gmail.com>
		 *  @since 0.1
		 */
		use KLF\KCore;

		class KPropertyException extends KException
		{
			public function __construct($propName = '', $obj)
			{
				parent::__construct(
					KCore::FS("Property {prop} does not exist in {class}", 
					array('prop' => $propName, 'class' => get_class($obj))));
			}
		}
	}